import splinter,time
c=splinter.Browser(fullscreen=True)

c.visit('https://qcos.qiniu.com')
time.sleep(2)
c.fill_form(dict(signin_username="wangkechun",signin_password="xxxxxx"))
time.sleep(2)

c.find_by_value('登录').click()
time.sleep(2)

c.find_by_xpath('//*[@id="service-list"]/h1/a').click()
time.sleep(4)

# c.find_by_name('title').fill('2048')
# time.sleep(2)

# c.find_by_name('serviceName').fill('2048')
# time.sleep(3)

c.find_by_xpath('//*[@id="service-list"]/h1/a').click()
time.sleep(2)

c.find_by_xpath('//*[@id="content-wrapper"]/div/div[2]/div/div[4]/div/button').click()
time.sleep(2)

c.find_by_xpath('//*[@id="content-wrapper"]/div/div[3]/div/div[2]/button').click()
time.sleep(2)

c.find_by_text('wangkechun/2024').click()
time.sleep(3)

# c.find_by_xpath('/html/body/div[8]/div/div/div[2]/div/div[2]/ul/li[3]/div[1]/button').click()

# time.sleep(2)
c.find_by_xpath('/html/body/div[5]/div/div/div[2]/div/div[2]/ul/li[3]/div[1]/button').click()

time.sleep(4)
c.find_by_xpath('//*[@id="content-wrapper"]/div/div[3]/div/div[4]/div/button[2]').click()

time.sleep(4)

c.find_by_xpath('//*[@id="content-wrapper"]/div/div[4]/div/div[3]/div/button[2]').click()
time.sleep(7)

c.find_by_xpath('//*[@id="content-wrapper"]/div[1]/div[1]/div[2]/div[1]/div/div[3]/div[1]/div').click()
time.sleep(4)

c.find_by_xpath('//*[@id="content-wrapper"]/div[1]/div[1]/div[2]/div[1]/div/div[3]/div[2]/table/tbody/tr/td[1]/a')
time.sleep(4)

c.find_by_xpath('//*[@id="content-wrapper"]/div[1]/div[1]/div[2]/div[1]/div/div[3]/div[2]/table/tbody/tr/td[1]/a').click()

